package com.webside.Advertisingstatistics.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.webside.Advertisingstatistics.model.AdSingleStatEntity;
import com.webside.base.basemapper.BaseMapper;
import com.webside.resource.model.ResourceEntity;

/***
 * lpz 每日广告更新表
 * 
 * @author Administrator
 *
 */
@Repository
public interface AdSingleStatMapper extends BaseMapper<ResourceEntity, Long> {
	// 在每日00:01分的时候将昨日的单个广告的数据统计出来并存入mysql中
	public int addAdSingleStat(AdSingleStatEntity adSingleStat);
	// 在每日00:01分的时候将昨日的单个广告的数据统计出来之前先删除旧数据
	public int deleteAdSingleStat();
	
	
	public AdSingleStatEntity selectAdSingleStat(@Param("adTitle") String adTitle);

}
